﻿using MediatR;
using Traceability.App.Api.DTO;
using Traceability.App.ErrorCode;

namespace Traceability.App.Api.Application.Command.Get
{
    public class GetTraceabilityCommand:IRequest<ApiPaging<TraceabilityDTO>>
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        public int? Pid { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string? Batch { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public int? ExpirationDate { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string? ProduceCode { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? Manufacturers { get; set; }
        public string? CreateName {  get; set; }
        public string? UpdateName {  get; set; }
        public DateTime? CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 15;
    }
}
